package com.yg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yg.config.result.R;
import com.yg.entity.readAndWriteTemplates.PublicationsRead;
import com.yg.entity.singleTemplates.Publications;

import javax.servlet.http.HttpServletResponse;
import java.io.FileInputStream;

/**
 * <p>
 * 对应sheet14，此表是本科生发表文章表 服务类
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface PublicationsService extends IService<Publications> {

    //excel录入
    R readExcel(FileInputStream fileInputStream);

    //excel导出
    R writeExcel(HttpServletResponse response,PublicationsRead publicationsRead);

    //查询所有教师指导本科生公开发表论文
    R selectAllPublications(String current,String limit);

    //条件查询
    R conditionalQuery(PublicationsRead publicationsRead, String current, String limit);

    //更新信息
    R updatePublications(Publications publications);

    //删除
    R deletePublicationById(Publications publications);

    //添加
    R insertPublications(Publications publications);
}
